package cn.cqone.crm.service.impl;

import cn.cqone.crm.domain.Customer;
import cn.cqone.crm.domain.DictoryDetails;
import cn.cqone.crm.mapper.CustomerMapper;
import cn.cqone.crm.query.CustomerQuery;
import cn.cqone.crm.service.BaseService;
import cn.cqone.crm.service.CustomerService;
import cn.cqone.crm.utils.PageList;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class CustomerServiceImpl extends BaseServiceImpl<Customer,Long,CustomerQuery> implements CustomerService {

    @Autowired
    private CustomerMapper customerMapper;

    @Override
    public void moveToPool(Customer customer) {
        customerMapper.moveToPool(customer);
    }

    @Override
    public void moveOutPool(Customer customer) {
        customerMapper.moveOutPool(customer);
    }

    @Override
    public void moveTrace(Customer customer) {
        customerMapper.moveTrace(customer);
    }

    @Override
    public void transferSeller(Customer customer) {
        customerMapper.transferSeller(customer);
    }

    @Override
    public List<DictoryDetails> findJobs() {
        return customerMapper.findJobs();
    }

    @Override
    public List<DictoryDetails> findSalary() {
        return customerMapper.findSalary();
    }

    @Override
    public List<DictoryDetails> findCusSource() {
        return customerMapper.findCusSource();
    }

    @Override
    public List<DictoryDetails> findMoveType() {
        return customerMapper.findMoveType();
    }
}
